package ntd.util.frame.action.function.online;

import cn.hutool.json.JSONUtil;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionInfo;
import ntd.action.bo.ActionOutBo;
import ntd.remote.online.ComOnline;
import ntd.remote.online.bo.OnlineInfo;
import com.tool.ToolSpring;

public class ActionOnline extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("在线信息列表(注册自己的信息)", "action-online", new ActionOnline());
    }

    @Override
    public ActionOutBo handle() {
        OnlineInfo onlineInfo = new OnlineInfo();
        onlineInfo.setIp(ToolSpring.ip());
        onlineInfo.setClientCode(ToolSpring.ip());
        ComOnline.online(onlineInfo);

        return new ActionOutBo(ComOnline.ListOnlineInfo());
    }

}
